<?php

namespace Biz\model\advertisement;

/**
 * @property mixed|string|null $group_field
 * @property mixed|null        $id
 * @property mixed|null        $column_field
 * @property mixed|null        $column_name
 * @property mixed|null        $switch_name
 * @property mixed|null        $sign
 * @property mixed|null        $show_option
 * @property mixed|null        $auto_write
 * @property mixed|null        $form_type
 * @property mixed|null        $form_help
 * @property mixed|null        $column_alias
 */
class MHhzPositionUserprofile extends MBaseDbModel
{
    const _CONFIG_FILE_ = 'db_position';

    const _CONFIG_SELECT_ = 'db_position';

    const _DATABASE_ = 'hhz_position';

    const _TABLE_NAME = 'hhz_position_userprofile';

    const SHOW_OPTION_AUTO = 1; //自动加载
    const SHOW_OPTION_AB = 2; //ab实验
    const SHOW_OPTION_CUSTOM = 5; //自定义加载
    const SHOW_OPTION_MAP = [
        self::SHOW_OPTION_AUTO => '自动加载',
        self::SHOW_OPTION_CUSTOM => '自定义加载',
        self::SHOW_OPTION_AB => 'ab实验',
    ];

    const SIGN_TYPE_FIELD = 1; //用户画像字段
    const SIGN_TYPE_GROUP = 2; //用户画像字段分组
    const SIGN_TYPE_LABEL = 3; //用户画像标签
    const SIGN_TYPE_MAP = [
        self::SIGN_TYPE_FIELD => '用户画像字段',
        self::SIGN_TYPE_LABEL => '用户画像标签',
        self::SIGN_TYPE_GROUP => '用户画像字段分组',
    ];

    const AUTO_WRITE_OFF = 1;//关闭自动生成文件
    const AUTO_WRITE_ON = 2;//自动生成文件
    const AUTO_WRITE_MAP = [
        self::AUTO_WRITE_ON => '开启',
        self::AUTO_WRITE_OFF => '关闭',
    ];
}
